package my.suveng.chat.export.task;

import my.suveng.chat.export.task.model.result.Result;
import my.suveng.model.common.response.Message;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration;
import org.springframework.boot.autoconfigure.jdbc.JdbcTemplateAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;

/**
 * @author suwenguang created since 2020/10/4
 */
@EnableAsync(proxyTargetClass = true)
@MapperScan(basePackages = "my.suveng.chat.export.task.dao")
@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class,
        DataSourceTransactionManagerAutoConfiguration.class, JdbcTemplateAutoConfiguration.class })
@ComponentScan(basePackages = { "my.suveng" })
public class ChatExportTaskApp {

    public static void main(String[] args) {
        // 配置同意返回封装
        Message.configureMessageBuilder(Result.class);
        SpringApplication.run(ChatExportTaskApp.class, args);
    }
}
